﻿@model IEnumerable<Example.Persistence.Account.User>
@{
    ViewBag.Title = "Index";
}

<h3>Users</h3>
<table class="table table-condensed table-striped">
    <thead>
        <tr>
            <th class="column-select"></th>
            <th>Name</th>
            <th>Email</th>
        </tr>
    </thead>
    <tbody>
    @foreach (var user in Model)
    {
        <tr>
            <td class="column-select"><input type="checkbox" value="@user.Id" /></td>
            <td>@Html.ActionLink(user.Name, "edit", new { id = user.Id })</td>
            <td>@user.Email</td>
        </tr>
    }
    </tbody>
</table>
<div class="well">
    <a class="btn btn-primary" href="@Url.Action("create")">Create</a>
</div>
